//
//  CompetionTopView.h
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/7/29.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CompetionDelegate <NSObject>

- (void)selectedGroup:(NSInteger)type;

@end

@interface CompetionTopView : UIView

@property(nonatomic,assign) id <CompetionDelegate> delegate;

@property (nonatomic, assign) NSInteger type;

@property (nonatomic, strong) UIButton * liveButton;

@property (nonatomic, strong) UIButton * inteButton;

@property (nonatomic, strong) UIButton * riceButton;

@property (nonatomic, strong) UIView * lineView;

- (void)switchToTab:(NSInteger)tab; // 1  2 3
@end
